__author__ = 'wuliao'
# coding = utf-8
import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors import LinkExtractor


class NeteaseSpider(CrawlSpider):
    name = "dmoz"
    allowed_domains = ["music.163.com"]
    start_urls = [
        "http://music.163.com/"
    ]
    man = "http://music.163.com/#/user/home?"
    list = "http://music.163.com/#/playlist?"

    def parse(self, response):
        url = response.url
        if (url.startswith("man")):
            self.parseMan(self, response)
        elif (url.startswith("list")):
            self.parseList(self, response)

    def parseMan(self, response):
        ""

    def parseList(self, response):
        ""
